{template common/header}
<div class="container"></div>
<div class="container install">
	<div class="install-header">
		<img alt="install logo" src="{imagedir}install-logo.png">
	</div>
	<div class="enviroment">
		<h3>环境检查:</h3>
		<table class="table table-bordered">
			<thead>
                <tr>
                  <th>检查项目</th>
                  <th>建议环境</th>
                  <th>当前环境</th>
                  <th>功能影响</th>
                </tr>
              </thead>
           	{loop $env_check $env}
				<tr {if !$env['check']}class="error"{else}class="success"{/if}>
			        <td>$env['label']</td>
			        <td>>={$env['need_version']}</td>
			        <td>{$env['curr_version']}</td>
			        <td>{if $env['check']}<span class="right">正确</span>{else}<span class="wrong">失败</span>{/if}</td>
			    </tr>
			{/loop}
			{loop $func_check $func}
				<tr {if !$func['check']}class="error"{else}class="success"{/if}>
			        <td>$func['label']</td>
			        <td>必须开启</td>
			        <td>{if $func['check']}<span class="right">√</span>{else}<span class="wrong">✕</span>{/if}</td>
			        <td>{if $func['check']}<span class="right">正确</span>{else}<span class="wrong">失败</span>{/if}</td>
			    </tr>
			{/loop}
		</table>
		<h3>目录权限检查:</h3>
		<table class="table table-bordered">
			<thead>
                <tr>
                  <th>检查目录</th>
                  <th>检查结果</th>
                  <th>功能影响</th>
                </tr>
              </thead>
			{loop $dir_check $key $dir}
				<tr {if !$dir['check']}class="error"{else}class="success"{/if}>
			        <td>$key</td>
			        <td>{if $dir['check']}<span class="right">可写</span>{else}<span class="wrong">不可写</span>{/if}</td>
			        <td>{if $dir['check']}<span class="right">正确</span>{else}<span class="wrong">失败</span>{/if}</td>
			    </tr>
			{/loop}
		</table>
	</div>
	<div class="form-actions text_c">
  		<a href="{url upgrade/step2}" class="btn" style="margin-right: 50px;">上一步</a>
  		<a href="{url upgrade/step3}" class="btn btn-primary">下一步</a>
	</div>
</div>
{template common/footer}